Optimal. Leaf size=98 \[ \frac {\sqrt {2} a \text {ArcTan}\left (\frac {\sqrt {d}-\sqrt {d} \tan (e+f x)}{\sqrt {2} \sqrt {d \tan (e+f x)}}\right )}{d^{5/2} f}-\frac {2 a}{3 d f (d \tan (e+f x))^{3/2}}-\frac {2 a}{d^2 f \sqrt {d \tan (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 98, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3610, 3613,
211} \begin {gather*} \frac {\sqrt {2} a \text {ArcTan}\left (\frac {\sqrt {d}-\sqrt {d} \tan (e+f x)}{\sqrt {2} \sqrt {d \tan (e+f x)}}\right )}{d^{5/2} f}-\frac {2 a}{d^2 f \sqrt {d \tan (e+f x)}}-\frac {2 a}{3 d f (d \tan (e+f x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 3610
Rule 3613
Rubi steps
\begin {align*} \int \frac {a+a \tan (e+f x)}{(d \tan (e+f x))^{5/2}} \, dx &=-\frac {2 a}{3 d f (d \tan (e+f x))^{3/2}}+\frac {\int \frac {a d-a d \tan (e+f x)}{(d \tan (e+f x))^{3/2}} \, dx}{d^2}\\ &=-\frac {2 a}{3 d f (d \tan (e+f x))^{3/2}}-\frac {2 a}{d^2 f \sqrt {d \tan (e+f x)}}+\frac {\int \frac {-a d^2-a d^2 \tan (e+f x)}{\sqrt {d \tan (e+f x)}} \, dx}{d^4}\\ &=-\frac {2 a}{3 d f (d \tan (e+f x))^{3/2}}-\frac {2 a}{d^2 f \sqrt {d \tan (e+f x)}}-\frac {\left (2 a^2\right ) \text {Subst}\left (\int \frac {1}{2 a^2 d^4+d x^2} \, dx,x,\frac {-a d^2+a d^2 \tan (e+f x)}{\sqrt {d \tan (e+f x)}}\right )}{f}\\ &=\frac {\sqrt {2} a \tan ^{-1}\left (\frac {\sqrt {d}-\sqrt {d} \tan (e+f x)}{\sqrt {2} \sqrt {d \tan (e+f x)}}\right )}{d^{5/2} f}-\frac {2 a}{3 d f (d \tan (e+f x))^{3/2}}-\frac {2 a}{d^2 f \sqrt {d \tan (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.16, size = 68, normalized size = 0.69 \begin {gather*} -\frac {\left (\frac {1}{3}+\frac {i}{3}\right ) a \left (\, _2F_1\left (-\frac {3}{2},1;-\frac {1}{2};-i \tan (e+f x)\right )-i \, _2F_1\left (-\frac {3}{2},1;-\frac {1}{2};i \tan (e+f x)\right )\right )}{d f (d \tan (e+f x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(307\) vs.
\(2(81)=162\).
time = 0.20, size = 308, normalized size = 3.14
method | result | size |
derivativedivides | \(\frac {a \left (-\frac {2}{d^{2} \sqrt {d \tan \left (f x +e \right )}}-\frac {2}{3 d \left (d \tan \left (f x +e \right )\right )^{\frac {3}{2}}}+\frac {-\frac {\left (d^{2}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{4 d}-\frac {\sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{4 \left (d^{2}\right )^{\frac {1}{4}}}}{d^{2}}\right )}{f}\) | \(308\) |
default | \(\frac {a \left (-\frac {2}{d^{2} \sqrt {d \tan \left (f x +e \right )}}-\frac {2}{3 d \left (d \tan \left (f x +e \right )\right )^{\frac {3}{2}}}+\frac {-\frac {\left (d^{2}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{4 d}-\frac {\sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{4 \left (d^{2}\right )^{\frac {1}{4}}}}{d^{2}}\right )}{f}\) | \(308\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 121, normalized size = 1.23 \begin {gather*} -\frac {\frac {3 \, a {\left (\frac {\sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {d} + 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {d}}\right )}{\sqrt {d}} + \frac {\sqrt {2} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {d} - 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {d}}\right )}{\sqrt {d}}\right )}}{d} + \frac {2 \, {\left (3 \, a d \tan \left (f x + e\right ) + a d\right )}}{\left (d \tan \left (f x + e\right )\right )^{\frac {3}{2}} d}}{3 \, d f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.97, size = 236, normalized size = 2.41 \begin {gather*} \left [\frac {3 \, \sqrt {2} a d \sqrt {-\frac {1}{d}} \log \left (-\frac {2 \, \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {-\frac {1}{d}} {\left (\tan \left (f x + e\right ) - 1\right )} - \tan \left (f x + e\right )^{2} + 4 \, \tan \left (f x + e\right ) - 1}{\tan \left (f x + e\right )^{2} + 1}\right ) \tan \left (f x + e\right )^{2} - 4 \, {\left (3 \, a \tan \left (f x + e\right ) + a\right )} \sqrt {d \tan \left (f x + e\right )}}{6 \, d^{3} f \tan \left (f x + e\right )^{2}}, -\frac {3 \, \sqrt {2} a \sqrt {d} \arctan \left (\frac {\sqrt {2} \sqrt {d \tan \left (f x + e\right )} {\left (\tan \left (f x + e\right ) - 1\right )}}{2 \, \sqrt {d} \tan \left (f x + e\right )}\right ) \tan \left (f x + e\right )^{2} + 2 \, {\left (3 \, a \tan \left (f x + e\right ) + a\right )} \sqrt {d \tan \left (f x + e\right )}}{3 \, d^{3} f \tan \left (f x + e\right )^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} a \left (\int \frac {1}{\left (d \tan {\left (e + f x \right )}\right )^{\frac {5}{2}}}\, dx + \int \frac {\tan {\left (e + f x \right )}}{\left (d \tan {\left (e + f x \right )}\right )^{\frac {5}{2}}}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 275 vs.
\(2 (86) = 172\).
time = 0.73, size = 275, normalized size = 2.81 \begin {gather*} -\frac {\sqrt {2} {\left (a d \sqrt {{\left | d \right |}} + a {\left | d \right |}^{\frac {3}{2}}\right )} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {{\left | d \right |}} + 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {{\left | d \right |}}}\right )}{2 \, d^{4} f} - \frac {\sqrt {2} {\left (a d \sqrt {{\left | d \right |}} + a {\left | d \right |}^{\frac {3}{2}}\right )} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {{\left | d \right |}} - 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {{\left | d \right |}}}\right )}{2 \, d^{4} f} - \frac {\sqrt {2} {\left (a d \sqrt {{\left | d \right |}} - a {\left | d \right |}^{\frac {3}{2}}\right )} \log \left (d \tan \left (f x + e\right ) + \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {{\left | d \right |}} + {\left | d \right |}\right )}{4 \, d^{4} f} + \frac {\sqrt {2} {\left (a d \sqrt {{\left | d \right |}} - a {\left | d \right |}^{\frac {3}{2}}\right )} \log \left (d \tan \left (f x + e\right ) - \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {{\left | d \right |}} + {\left | d \right |}\right )}{4 \, d^{4} f} - \frac {2 \, {\left (3 \, a d \tan \left (f x + e\right ) + a d\right )}}{3 \, \sqrt {d \tan \left (f x + e\right )} d^{3} f \tan \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 5.19, size = 103, normalized size = 1.05 \begin {gather*} -\frac {2\,a}{d^2\,f\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}-\frac {2\,a}{3\,d\,f\,{\left (d\,\mathrm {tan}\left (e+f\,x\right )\right )}^{3/2}}+\frac {{\left (-1\right )}^{1/4}\,a\,\mathrm {atan}\left (\frac {{\left (-1\right )}^{1/4}\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{\sqrt {d}}\right )\,\left (-1+1{}\mathrm {i}\right )}{d^{5/2}\,f}+\frac {{\left (-1\right )}^{1/4}\,a\,\mathrm {atanh}\left (\frac {{\left (-1\right )}^{1/4}\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{\sqrt {d}}\right )\,\left (1+1{}\mathrm {i}\right )}{d^{5/2}\,f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________